import request from '@/utils/req'
export default {
  //登录
  login (params) {
    return request({ url: '/api/login', method: "post", params })
  },
  //获取首页数据统计
  StatisticsIndex () {
    return request({ url: '/api/admin', method: "get" })
  },
  //获取菜单目录(未用)
  indexMenus () {
    return request({ url: '/api/admin/menus', method: "get" })
  },
  //获取文章列表数据
  getArticlesList (params) {
    return request({ url: '/api/admin/articles?current=' + params.current + '&size=' + params.size + '&isDelete=' + params.isDelete, method: "get" })
  }

}